package com.myapp.api.service;

import com.myapp.api.entity.Major;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MajorService {
    public List<Major> getMajors();

    public Major getMajorById(@Param("id") Integer id);

    public Major getMajorbyMid(@Param("mid") String mid);

    public Integer getMajorbyOneMid(@Param("mid") String mid);

    public List<Major> getMajorByMname(@Param("mname") String mname);

    public int addMajor(@Param("record") Major record);

    public int deleteMajorById(@Param("id") Integer id);

    public int putMajor(@Param("record") Major record);
}
